package com.tierstall.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import java.util.ArrayList;


import com.tierstall.shared.SessionInvalidException;
import com.tierstall.shared.UserDTO;

@RemoteServiceRelativePath("usersService")
public interface UsersService extends RemoteService {
	
  UserDTO addUser(String sessionId, UserDTO user);
  Boolean deleteUser(String sessionId, String id); 
  ArrayList<UserDTO> deleteUsers(String sessionId, ArrayList<String> ids) throws SessionInvalidException;
  ArrayList<UserDTO> getUserDetails(String sessionId) throws SessionInvalidException;
  UserDTO getUser(String sessionId, String id);
  UserDTO updateUser(String sessionId, UserDTO user);
}
